<?php
class Page extends Public_Controller{
	
	function __construct(){
		parent::__construct();
		$this->load->model('page_get_m');
	}
	
	public function index( $slug ){
		$model = $this->page_get_m->get($slug);//model va list_related
		$article = $model->article;
		$list_orther = $model->list_orther;
		$this->template
			->set_breadcrumb($article->title)
			->title($article->title)
			->set('article',$article)
			->set('list_orther',$list_orther)
			->build('view/'.$this->method);
	}
}